/**
 * jims
 */
package com.jims.master.modules.csm.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.common.web.impl.BaseDto;
import com.jims.master.modules.csm.entity.ExpProvideApplication;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 消耗品发放生申请DAO接口
 * @author zhuq
 * @version 2017-03-18
 */
@MyBatisDao
public interface ExpProvideApplicationDao extends CrudDao<ExpProvideApplication> {

    /**
     * 查阅本库房所提申请
     * @param expProvideApplication
     * @return
     * @author fengyg
     * @date 2017-06-16
     */
    public List<ExpProvideApplication> searchProvideApplication(ExpProvideApplication expProvideApplication);

    /**
     * 科室申请审核保存
     * @description 修改审核数量和发放状态
     * @param expProvideApplication
     * @return
     */
    public int updateAuditProvide(ExpProvideApplication expProvideApplication);

    /**
     * 采购对消入出库保存，修改科室申请信息（修改exp_info_id，quantity_out，out_flag字段）
     * @param expProvideApplication
     * @return
     */
    public int updateProvideApplication(ExpProvideApplication expProvideApplication);

    /**
     * 查询申请出库的数据
     * @param expProvideApplication
     * @return
     * @author fengyg
     */
    public List<ExpProvideApplication> findApplicationExportList(ExpProvideApplication expProvideApplication);

    /**
     * 消耗品采购按名称汇总输出pdf
     * @param expProvideApplication
     * @return
     */
    public List<BaseDto> findByExpNamePrint(ExpProvideApplication expProvideApplication);
    /**
     * 消耗品采购按科室汇总输出pdf
     * @param expProvideApplication
     * @return
     */
    public List<BaseDto> findByStorageInPrint(ExpProvideApplication expProvideApplication);
}